package com.cn.组件注册FactoryBean;

import org.springframework.beans.factory.FactoryBean;

/**
 * @Auther: 代理仁
 * @Date: 2019/7/8 23:28
 * @Description:
 */
public class ProjectFactory implements FactoryBean<RedisConfig> {
    @Override
    public RedisConfig getObject() throws Exception {
        return new RedisConfig();
    }

    @Override
    public Class<?> getObjectType() {
        return RedisConfig.class;
    }

    @Override
    public boolean isSingleton() {
        return false;
    }
}
